package com.yami.shop.bean.enums;

/**
 * 五官资源类型枚举
 * @author AI Assistant
 */
public enum FeatureTypeEnum {
    /**
     * 眼睛
     */
    EYES(1, "眼睛"),
    
    /**
     * 眉毛
     */
    EYEBROWS(2, "眉毛"),
    
    /**
     * 鼻子
     */
    NOSE(3, "鼻子"),
    
    /**
     * 嘴巴
     */
    MOUTH(4, "嘴巴"),
    
    /**
     * 腮红
     */
    BLUSH(5, "腮红"),
    
    /**
     * 发型
     */
    HAIR(6, "发型");

    private final Integer value;
    private final String desc;

    FeatureTypeEnum(Integer value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    public Integer value() {
        return value;
    }

    public String desc() {
        return desc;
    }

    public static FeatureTypeEnum instance(Integer value) {
        for (FeatureTypeEnum type : FeatureTypeEnum.values()) {
            if (type.value.equals(value)) {
                return type;
            }
        }
        return null;
    }
}